package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserWithdraw struct {
	Id                int    `json:"id" gorm:"primaryKey;autoIncrement"`
	Uid               int    `json:"uid"`
	SerialNumber      string `json:"serial_number"`
	ApplyAmount       int    `json:"apply_amount"`
	BankId            int    `json:"bank_id"`          //银行id
	BankName          string `json:"bank_name"`        //银行名称
	BankcardName      string `json:"bankcard_name"`    //银行卡用户实名
	BankcardAccount   string `json:"bankcard_account"` //银行卡卡号
	ErrorMsg          string `json:"error_msg"`
	Status            int    `json:"status"`
	Remark            string `json:"remark"`
	Auditor           string `json:"auditor"`
	AuditorId         int    `json:"auditor_id"`
	TransactionCharge int    `json:"transaction_charge"`
	TransactionAmount int    `json:"transaction_amount"`
	UserAlipayId      int    `json:"user_alipay_id"`
	AlipayAddress     string `json:"alipay_address"`
	AlipayName        string `json:"alipay_name"`
	//VerifiedTime      time.Time `json:"verified_time"`
	//FinishTime        time.Time `json:"finish_time"`
	//DeletedTime       time.Time `json:"deleted_time"`
	CreatedTime time.Time `json:"created_time"`
	//UpdatedTime       timehelper.Time `json:"updated_time"`
}

func (UserWithdraw) TableName() string {
	return fmt.Sprintf("%suser_withdraw", models.Prefix)
}
